package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 兑换权益计划
 *
 * @author oxiny
 */
@TableName("d_ex_plan")
@Data
public class ExPlan {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("兑换类型 0潮剪内部权益 1外部券码")
    private Integer exchangeType;

    @ApiModelProperty("权益ID")
    private Integer memberDetailId;

    @ApiModelProperty("0未开始 1进行中 2已结束")
    private Integer status;

    @ApiModelProperty("有效期类型 0固定日期 1领取后多少天到期")
    private Integer expiredType;

    @ApiModelProperty("有效天数")
    private Integer day;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("已兑换数量")
    private Integer getNum;

    @ApiModelProperty("总数")
    private Integer total;

    @ApiModelProperty("第三方券码导入")
    private String code;

    private Date addTime;
}
